<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="${staticServer}/inc/style/main.css"/>
    <link rel="stylesheet" href="${staticServer}/inc/style/page.css"/>
    <link rel="stylesheet" href="${staticServer}/css/work_today.css"/>
    <link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css"/>
    <script src="${staticServer}/inc/js/jquery.js"></script>
    <script src="${staticServer}/inc/js/pageset.js"></script>
    <script src="${staticServer}/inc/js/submitter.js"></script>
    <script src="${staticServer}/inc/js/infopad.js?2.2"></script>
    <script src="${staticServer}/inc/js/tips.js"></script>
    <script src="${staticServer}/js/web/consultant_client_tracking_list.js?1.0"></script>

    <link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css"/>
    <script src="${staticServer}/inc/js/datepicker.js"></script>

    <script>
        var contextPath = '${contextPath}';
        var _contextPath = '${staticServer}';
       
        var path='http://120.55.241.58/';
        $(function () {
            $("#center").val("<#if zhichu??>${zhichu.regionns}</#if>")
        });

	   function queryCenterPerformance() {
	       window.location.href = "${contextPath}/index/queryCenterPerformance.htm?&jd_center_key="+$("#jd_center_key").val()+"&startTime="+$("#startTime").val();
	   }
       $(function(){
    	   $("#jd_center_key").val("<#if jd_center_key??>${jd_center_key}</#if>");
       });
    </script>
</head>

<body>
<input type="hidden" id="traId" value="">
<div id="home_link">
    <ul>
        <li>财务管理</li>
        <li>&gt;</li>
        <li class="current">申请发票列表</li>
    </ul>
</div>
<div id="container">
    <div id="title">申请发票列表</div>
    <table class="simple_table" rel="nohover" style="min-width: 750px;">
        <tr>
            <td>
	        	<#if webutil.getCookieUser().username=="xuetingting">
		        	<label>训练中心：</label>
					<select id="jd_center_key">
						<option value="">请选择中心</option>
						<#if office_List??>
							<#list office_List as list>
								<option value="${list.keyname}">${list.name}</option>
							</#list>
						</#if>
					</select>
				</#if>

                <label for="phone">查询月份：</label>
                <input type="text" id="startTime" rel="DATE::Y-m" value="${startTime}" size="15" maxlength="15"
                       readonly="readonly" class="DatePicker_Icon">
            </td>

            <td rowspan="4">
                <input type="button" value=" 查 询 " onclick="queryCenterPerformance()"/>
			</td>
        </tr>
    </table>
    <table>
        <tr class="fields">
            <th width="100">训练中心</th>
            <th width="100">中心业绩</th>
            <th width="100">日期</th>
            <th width="60">操作</th>
        </tr>

    <#if moneyList??>
        <#list moneyList as list>
        <tbody id="datas">
        <#if list.isSuccess==1>
        <tr class="even_row" style="color:#31b0d5">
        <#else >
        <tr class="even_row" >
        </#if>

            <td align="center"><#if list.center?? && list.center!=0>${list.center}</#if></td>
            <td align="center">${list.moneysCount}</td>
            <td align="center">${list.startTime}</td>
            <td align="center">
               
            </td>
        </tr>
        </#list>
    </#if>
    </table>
</div>

<div id="pager">
    <ul id="pagination" style="padding-left: 14px">
    <#if page??>
        <#if page.pagetotal?? && page.pagetotal!="0">
            <#assign pagetotal = page.pagetotal>
        <#else>
            <#assign pagetotal = 1>
        </#if>
        <#if page.currpage??>
            <#assign currpage = page.currpage>
        <#else>
            <#assign currpage = 1>
        </#if>
        <#if currpage==1 >
            <li class="previous-off">首页</li>
            <li class="previous-off">上一页</li>
        <#else>
            <li class="previous"><a
                    href="${contextPath}/index/invoiceList.htm?currPage=1&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">首页</a>
            </li>
            <li class="previous"><a
                    href="${contextPath}/index/invoiceList.htm?currPage=${currpage-1}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">上一页</a>
            </li>
        </#if>
        <input type="hidden" id="total" value="${page.pagetotal}"/>
        <#if pagetotal<=11>
            <#list 1..pagetotal as index_up>
                <#if currpage==index_up >
                    <li class="current">${index_up}</li>
                <#else>
                    <li>
                        <a href="${contextPath}/index/invoiceList.htm?currPage=${index_up}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">${index_up}</a>
                    </li>
                </#if>
            </#list>
        <#else>
            <#if currpage<=8 >
                <#list 1..9 as index_up>
                    <#if currpage==index_up >
                        <li class="current">${index_up}</li>
                    <#else>
                        <li>
                            <a href="${contextPath}/index/invoiceList.htm?currPage=${index_up}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">${index_up}</a>
                        </li>
                    </#if>
                </#list>
                <li>...</li>
                <li>
                    <a href="${contextPath}/index/invoiceList.htm?currPage=${pagetotal}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">${pagetotal}</a>
                </li>

            <#elseif (currpage>= 9 && currpage<pagetotal-7)  >
                <li>
                    <a href="${contextPath}/index/invoiceList.htm?currPage=1&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">1</a>
                </li>
                <li>...</li>
                <#list currpage-3..currpage+3 as index_up>
                    <#if currpage==index_up >
                        <li class="current">${index_up}</li>
                    <#else>
                        <li>
                            <a href="${contextPath}/index/invoiceList.htm?currPage=${index_up}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">${index_up}</a>
                        </li>
                    </#if>
                </#list>
                <li>...</li>
                <li>
                    <a href="${contextPath}/index/invoiceList.htm?currPage=${pagetotal}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">${pagetotal}</a>
                </li>
            <#else>
                <li>
                    <a href="${contextPath}/index/invoiceList.htm?currPage=1&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">1</a>
                </li>
                <li>...</li>
                <#list pagetotal-8..pagetotal as index_up>
                    <#if currpage==index_up >
                        <li class="current">${index_up}</li>
                    <#else>
                        <li>
                            <a href="${contextPath}/index/invoiceList.htm?currPage=${index_up}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">${index_up}</a>
                        </li>
                    </#if>
                </#list>
            </#if>
        </#if>
        <#if currpage==pagetotal >
            <li class="previous-off">下一页</li>
            <li class="previous-off">尾页</li>
        <#else>
            <li class="previous"><a
                    href="${contextPath}/index/invoiceList.htm?currPage=${currpage+1}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">下一页</a>
            </li>
            <li class="previous"><a
                    href="${contextPath}/index/invoiceList.htm?currPage=${page.pagetotal}&jd_center_key=${jd_center_key}&teacher_name=${teacher_name}&startTime=${startTime}&endTime=${endTime}&student=${student}&state=${state}">尾页</a>
            </li>
        </#if>
        <li class="previous"></li>
        <li class="pageinfo">共${page.total}条记录</li>
    </#if>
    </ul>
</div>

<div class="emptyline"></div>
</body>
</html>